home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / TESTSPAR / DEFS.H < prev    next >
Encoding:
Text File  |  2001-02-09  |  2.8 KB  |  114 lines

  1. ;+
  2. ; Conditional assembly
  3. ;-
  4. DRIVER    equ    1            ; 0: not compiling for AHDI.PRG
  5. DEBUG    equ    0            ; 0: don't include debugging code
  6. RDWDL    equ    0            ; 0: don't need extra read from WDL
  7.  
  8. SCSIID    equ    6            ; our (host) SCSI ID
  9.  
  10.  
  11. ;+
  12. ; Restraints 
  13. ;-
  14. MAXLOG        equ    14        ; max # of log units w/o drv A & B
  15. MAXACSI        equ    8        ; maximum number of ACSI devices
  16. MAXSCSI        equ    8        ; maximum number of SCSI devices
  17. MAXIDE        equ    1        ; maximum number of IDE devices
  18. ACSIUNT        equ    7        ; highest ACSI unit number
  19. SCSIUNT        equ    15        ; highest SCSI unit number
  20. IDEUNT        equ    16        ; highest IDE unit number
  21. MAXACSECTS    equ    254        ; max # of sectors/ACSI gulp
  22. MAXSPSECTS    equ    16383        ; max # of sectors/Sparrow SCSI gulp
  23.                     ; Set from 16384 LT
  24. MAXSCSECTS    equ    65534        ; max # of sectors/SCSI gulp
  25. MAXIDESECTS    equ    256        ; max # of sectors/IDE gulp
  26.  
  27.  
  28. ;+
  29. ; Machine type as defined in the _MCH cookie
  30. ;-
  31. ST        equ    0
  32. STE        equ    $00010000
  33. STBOOK        equ    $00010008
  34. MSTE        equ    $00010010
  35. TT        equ    $00020000
  36. SPARROW        equ    $00030000    ; Changed to reflect ROMs LT
  37.  
  38. ;+
  39. ; Offsets to ...
  40. ;-
  41. DOSPM        equ    $1be        ; MSDOS boot sect's partition map
  42. DOSSIG        equ    $1fe        ; MSDOS boot sect's signature
  43. HDSIZ        equ    $1c2        ; offset to GEMDOS root sect's 
  44.  
  45.  
  46. ;+
  47. ; Constants and Variables
  48. ;-
  49. SIG        equ    $55aa        ; signature for valid MSDOS boot sects
  50. NRETRIES    equ    3        ; #retries-1
  51. MAXNPART    equ    3        ; #partition entries in root sect - 1
  52. BPBLEN        equ    18        ; length of bpb entry in bytes
  53. FATLEN        equ    6        ; max fat size = 2**6 = 64 sectors
  54. SERLEN        equ    3        ; length of a serial # in bytes
  55. CHKDATE        equ    $19870422    ; ROM date for bootstop checking
  56.  
  57.  
  58. ;+
  59. ; Number of bytes per Buffer Control Block (excluding the data block itself)
  60. ;
  61. ; struct_bcb {
  62. ;     struct_bcb    *b_link;    /* 4 bytes */
  63. ;    int        b_neg1;        /* 2 bytes */
  64. ;    int        b_private[5];    /* 10 bytes */
  65. ;    char        *b_bufr;    /* 4 bytes */
  66. ; };
  67. ;
  68. ; For GEMDOS buffer lists.
  69. ;-
  70. BCBLEN        equ    20
  71.  
  72.  
  73. ;+
  74. ; Number of bytes per IDE drive parameters structure
  75. ;
  76. ; struct_idedp {
  77. ;    int    nhead;        /* # of data heads */
  78. ;    int    nspt;        /* # of physical sectors per track */
  79. ; };
  80. ;-
  81. IDEDPLEN    equ    4
  82.  
  83.  
  84. ;+
  85. ; for extension of OS pool
  86. ;-
  87. chunksiz    equ     66        ; #bytes/chunk
  88. chunkno        equ     4        ; chunk# (4 16-byte chunks)
  89.  
  90.  
  91. ;+
  92. ; for checking existence of fast RAM
  93. ;    If long word at _ramvalid == RAMMAGIC
  94. ; then  _ramtop is valid.  If _ramtop contains 0, no fast RAM is available,
  95. ; else _ramtop contains the address of top (end) of memory
  96. ;
  97. ; Fast RAM always starts at $01000000.
  98. ; _ramtop may hold $01000000 meaning there is no fast RAM!
  99. ;
  100. ; RAMRSV must be smaller than MAXACSECTS
  101. ;-
  102. RAMMAGIC    equ    $1357bd13    ; magic cookie for fast RAM
  103. RAMBOT        equ    $01000000    ; where fast RAM starts
  104. RAMRSV        equ    $80        ; # sectors of reserved RAM (64k)
  105.  
  106.  
  107. ;+
  108. ; Vector address
  109. ;-
  110. BERR        equ    $8        ; Bus ERRor vector
  111. IINS        equ    $10        ; Illegal INStruction vector
  112.  
  113.  
  114.